package top.usts.springframework.beans.factory.support;

import top.usts.springframework.beans.BeansException;
import top.usts.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @description:
 * @author: CJ
 * @date: 2022/2/21
 * 初始化策略
 */
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName
            , Constructor ctor, Object[] args) throws BeansException;

}
